package com.example.androiddemo.entities;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Transient;

public class MediaInfo extends EntityBase{
	
	public static final int IMG = 1;
	
	public static final int VIDEO = 3;
	
	public static final int RECORD = 2;
	
	public static final int RESOURCE = 99;
	
	public static final String COLUMN_BCID = "bcid";
	public static final String COLUMN_TYPE = "type";
	public static final String COLUMN_url = "url";

	@Column(column = "type")
	public int type;
	@Column(column = "url")
	public String url;
	@Column(column = "bcid")
	private int bcid;
	@Transient
	private int resourceId;
	
	public MediaInfo(){}
	
	public MediaInfo(int bcid,int type,String url){
		this.bcid = bcid;
		this.type = type;
		this.url = url;
	}
	
	public MediaInfo(int resourceId){
		this.type = RESOURCE;
		this.resourceId = resourceId;
	}
	
	public int getResourceId() {
		return resourceId;
	}
	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getBcid() {
		return bcid;
	}
	public void setBcid(int bcid) {
		this.bcid = bcid;
	}
	
}
